<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>视频</title>
  <script src="./js/kurento-utils.js"></script>
  <script src="./js/vedio.js"></script>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    html, 
    body, 
    .vedio-container {
      width: 100%;
      height: 100%;
    }
    .vedio-container {
      position: relative;
    }
    #video {
      width: 100%; 
      height: 100%; 
      object-fit: fill;
    }
    .view-box {
      width: 100px;
      height: 140px;
      position: absolute;
      right: 10px;
      top: 10px;
      border: 1px solid #f5f5f5;
    }
    #viewID {
      width: 100%;
      height: 100%;
      object-fit: fill;
    }
  </style>
</head>

<body>
  <div class="vedio-container">
    <video id="video" poster="img/webrtc.png" autoplay src="./1.mp4"></video>
    <div class="view-box"><video id="viewID" poster="img/webrtc.png" autoplay src="./2.mp4"></video></div>
  </div>
</body>

</html>